import { IsNotEmpty } from "class-validator";

export class CreateApiDto {
  @IsNotEmpty({
    message: '新闻ID不能为空'
  })
  id: string

  @IsNotEmpty({
    message: '新闻标题'
  })
  title: string

  @IsNotEmpty({
    message: '分类'
  })
  category: string

  @IsNotEmpty({
    message: '作者名称'
  })
  author_name: string

  @IsNotEmpty({
    message: '原链接'
  })
  url: string

  thumbnail_pic_s?: string

  is_content?: string
}
